var index, tmpStr, tmpChar, preString, postString, strlen;
function Ufirst(a) {
  tmpStr = a.value.toLowerCase();
  strLen = tmpStr.length;
  if (strLen > 0)
    for (index = 0; index < strLen; index++)
      if (index == 0) {
        tmpChar = tmpStr.substring(0, 1).toUpperCase();
        postString = tmpStr.substring(1, strLen);
        tmpStr = tmpChar + postString;
      } else {
        tmpChar = tmpStr.substring(index, index + 1);
        if (tmpChar == " " && index < strLen - 1) {
          tmpChar = tmpStr.substring(index + 1, index + 2).toUpperCase();
          preString = tmpStr.substring(0, index + 1);
          postString = tmpStr.substring(index + 2, strLen);
          tmpStr = preString + tmpChar + postString;
        }
      }
  a.value = tmpStr;
}
function Usmall(a) {
  tmpStr = a.value.toLowerCase();
  a.value = tmpStr;
}
function Ubig(a) {
  tmpStr = a.value.toUpperCase();
  a.value = tmpStr;
}
function copy(a) {
  if ((a = findObj(a))) {
    a.select();
    js = a.createTextRange();
    js.execCommand("Copy");
  }
}
function cut(a) {
  if ((a = findObj(a))) {
    a.select();
    js = a.createTextRange();
    js.execCommand("Cut");
  }
}
function findObj(a, b) {
  var c, d;
  b || (b = document);
  if ((c = a.indexOf("?")) > 0 && parent.frames.length) {
    b = parent.frames[a.substring(c + 1)].document;
    a = a.substring(0, c);
  }
  if (!(d = b[a]) && b.all) d = b.all[a];
  for (c = 0; !d && c < b.forms.length; c++) d = b.forms[c][a];
  for (c = 0; !d && b.layers && c < b.layers.length; c++)
    d = findObj(a, b.layers[c].document);
  if (!d && document.getElementById) d = document.getElementById(a);
  return d;
}
function paste(a) {
  tmpStr = window.clipboardData.getData("text");
  a.value = a.value + tmpStr;
}
var _hmt = _hmt || [];
(function () {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?19ec2b38fb53d16a4115686054b1363e";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
window._bd_share_config = {
  common: {
    bdSnsKey: {},
    bdText: "",
    bdMini: "2",
    bdMiniList: false,
    bdPic: "",
    bdStyle: "0",
    bdSize: "16"
  },
  slide: { type: "slide", bdImg: "6", bdPos: "right", bdTop: "100" }
};
with (document)
  (0)[
    ((getElementsByTagName("head")[0] || body).appendChild(
      createElement("script")
    ).src =
      "http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=" +
      ~(-new Date() / 36e5))
  ];
